package com.fuyun.server;

import com.fuyun.rpc.config.RpcServiceConfig;
import com.fuyun.rpc.transmission.RpcServer;
import com.fuyun.rpc.transmission.socket.server.SocketRpcServer;
import com.fuyun.server.server.UserServerImpl;

/**
 * @Author fuyun。
 * @Date 2025/8/21 16:04。
 * @Description: TODO。
 **/

public class Main {

    public static void main(String[] args) {
        RpcServiceConfig rpcServiceConfig = new RpcServiceConfig(new UserServerImpl());
        RpcServer server = new SocketRpcServer(8888);
        server.publishService(rpcServiceConfig);
        server.start();
    }

}
